package net.atomtree.corrsepond;

import net.atomtree.corrsepond.analyse.SpiderAnalyse;
import net.atomtree.corrsepond.factory.SparkRestFactoryAdapter;
import net.atomtree.entity.Application;
import net.atomtree.entity.init.ApplicationInit;

/**
 * Created by czk on 2016/1/4.
 */
public class ApplicationCorrespondImpl implements Correspond {

    @Override
    public String getCorrespondUrl(String jobId) throws Exception {
        Application app= new ApplicationInit().init(jobId);
        String restUrl= SparkRestFactoryAdapter.URLFactory(app);
        return restUrl;
    }
}

